<?php

declare(strict_types=1);
/**
 * This file is part of MoChat.
 * @link     https://mo.chat
 * @document https://mochat.wiki
 * @contact  group@mo.chat
 * @license  https://github.com/mochat-cloud/mochat/blob/master/LICENSE
 */
namespace MoChat\App\Install\Constants;

use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;

/**
 * @Constants
 * @method static getMessage($code, array $options = []) 获取枚举值
 */
class Version extends AbstractConstants
{
    public const CURRENT_NUMBER = '1.6.9';

    /**
     * 获取所有历史版本号.
     *
     * @return array
     */
    public static function getVersions()
    {
        return [
            '1.6.9',
            '1.6.8',
            '1.6.7',
            '1.6.6',
            '1.6.5',
            '1.6.4',
            '1.6.3',
            '1.6.2',
            '1.6.1',
            '1.6.0',
            '1.5.0',
            '1.4.1',
            '1.4.0',
            '1.3.2',
            '1.3.1',
            '1.3.0',
            '1.2.1',
            '1.2.0',
            '1.1.5',
        ];
    }
}
